#!/bin/bash

java_project_path="/alidata/Project/uke-operation-open-0.0.1-SNAPSHOT.jar"

echo "强制关闭已有uke-operation-open服务"
process=`ps -ef | grep uke-operation-open| grep -v grep | awk '{print $2}'`

for i in $process
do
 echo "kill the $1 process [ $i ]"
 kill -9 $i
done


# 部署重启服务
echo "uke-operation-open服务：准备重启"
java -Xms500m -Xmx3000m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -jar /alidata/Project/uke-operation-open-0.0.1-SNAPSHOT.jar  --spring.config.location=/alidata/Project/application.yml  --server.port=80 &
echo "uke-operation-open服务：重启成功"


